package com.blate.dogxiao.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Blate
 * Created in 2021/4/20
 */
public class HouseBean
        implements Parcelable {

    public String preview;
    public String title;
    public String summary;
    public String unitPrice;
    public String totalPrice;
    public String releaseTime;
    public String layer;
    public String direction;
    public String unitType;
    public String areaName;
    public String houseDescription;
    public String areaDetail;

    public HouseBean() {
    }

    protected HouseBean(Parcel in) {
        preview = in.readString();
        title = in.readString();
        summary = in.readString();
        unitPrice = in.readString();
        totalPrice = in.readString();
        releaseTime = in.readString();
        layer = in.readString();
        direction = in.readString();
        unitType = in.readString();
        areaName = in.readString();
        houseDescription = in.readString();
        areaDetail = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(preview);
        dest.writeString(title);
        dest.writeString(summary);
        dest.writeString(unitPrice);
        dest.writeString(totalPrice);
        dest.writeString(releaseTime);
        dest.writeString(layer);
        dest.writeString(direction);
        dest.writeString(unitType);
        dest.writeString(areaName);
        dest.writeString(houseDescription);
        dest.writeString(areaDetail);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<HouseBean> CREATOR = new Creator<HouseBean>() {
        @Override
        public HouseBean createFromParcel(Parcel in) {
            return new HouseBean(in);
        }

        @Override
        public HouseBean[] newArray(int size) {
            return new HouseBean[size];
        }
    };
}
